package com.neuedu.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neuedu.dao.StockOutDao;
import com.neuedu.model.StockOut;
import com.neuedu.service.StockOutService;

@Service
public class StockOutServiceImpl implements StockOutService {

	// 依赖注入
	@Autowired
	private StockOutDao StockOutDao;
	
	public void setStockOutDao(StockOutDao StockOutDao) {
		this.StockOutDao = StockOutDao;
	}
	
	@Override
	public int countStockOut() {
		return StockOutDao.countStockOut();
	}

	@Override
	public List<StockOut> findAll(Map<String, Object> map) {
		return StockOutDao.findAll(map);
	}

	@Override
	public int addStockOut(StockOut u) {
		return StockOutDao.addStockOut(u);
	}

	@Override
	public int updateStockOut(StockOut u) {
		return StockOutDao.updateStockOut(u);
	}

	@Override
	public int deleteStockOut(int id) {
		return StockOutDao.deleteStockOut(id);
	}

}
